#! /bin/bash

siege_dir=/usr/local/bin
factor=10
url="http://$1$2"

echo $url

users=1
repeat=10
for (( i = 1; i <= 10; i++ ))
do
    repeat=`expr $factor \\* $i`
    $siege_dir/siege -r $repeat -c $users $url
    #echo $repeat
done  

users=5
repeat=10
for (( i = 1; i <= 10; i++ ))
do
    repeat=`expr $factor \\* $i`
    $siege_dir/siege -r $repeat -c $users $url
    #echo $repeat
done  

users=10
repeat=10
for (( i = 1; i <= 10; i++ ))
do
    repeat=`expr $factor \\* $i`
    $siege_dir/siege -r $repeat -c $users $url
    #echo $repeat
done  
